package com.itheima.databasequeries;

public class Test {


    public static void main(String[] args) {
    new DatabaseQuery(){

        @Override
        public void executeQuery(String query) {
            System.out.println("调用MySq数据库");

        }
    }.executeQuery("MysqlTest");

        new DatabaseQuery(){

            @Override
            public void executeQuery(String query) {
                System.out.println("调用DB2数据库");

            }
        }.executeQuery("DB2");

    }

/*

    public static void method(DatabaseQuery databaseQuery,String s){
        databaseQuery.executeQuery(s);
    }
*/

}
